package com.beone.admin.query.common;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 基础查询对象
 * </p>
 *
 * @author Pagenny
 * @date 2019-05-19 10:30
 **/
@ApiModel
public class BaseQuery implements Serializable {

    @ApiModelProperty(value = "页码数", name = "page")
    private int page = 1;
    @ApiModelProperty(value = "一页显示行数", name = "rows")
    private int rows = 10;
    @ApiModelProperty(hidden = true)
    private Integer userId;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
